# -*- coding:utf-8 -*-
import pytest
import allure
from selenium import webdriver

from pages.login import Login
from pages.park_manage import ParkManage


class TestParkManage(object):
    """
    园区管理用列
    """
    def setup_class(self):
        self.driver = webdriver.Chrome()
        self.url = "http://gshq.jianyitong.com/#/entrance/login"
        Login(self.driver, self.url).login()

    def teardown_class(self):
        self.driver.quit()

    @pytest.mark.run(order=3)
    @allure.title("新建部门用列")
    def testCreatePart(self):
        pm = ParkManage(self.driver)
        text = pm.create_part()
        assert text == "自动化专用数据（0）人"

